order the detention of a ship